<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: pink;
            border-radius: 50%;
            
            /* 半径 圆心x轴y轴 颜色 颜色 */
            background: radial-gradient(50px at center center, pink, red);
            background: radial-gradient(50px 20px at center center, red, pink);
            background: radial-gradient(50px at 50px 30px, red, pink);

        }

        button{
            width: 100px;
            height: 40px;
            background-color: green;
            border: 0;
            border-radius: 5px;
            color: #fff;
            background-image: radial-gradient(30px at center center, rgba(255,255,255,0.2),transparent);
            /* 使用background会与上面的背景颜色重复设置导致背景颜色失效 */
        }
    </style>
</head>
<body>
    <div></div>
    <button>按钮</button>
</html>